﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Willows.Model
{
	public class IdentifierExpression : Weazel.Gezel.Model.LeafExpression
	{
		private TypeRegistry typeRegistry;
		public TypeRegistry TypeRegistry
		{
			get { return typeRegistry; }
		}

		private Type type;
		public Type Type
		{
			get { return type; }
		}

		public IdentifierExpression(TypeRegistry typeRegistry, Type type, string value) 
			: base(Weazel.Gezel.Model.ExpressionType.Identifier, value)
		{
			this.typeRegistry = typeRegistry;
			this.type = type;
		}
	}
}
